package com.aabte.design.pattern.behavioral.chainnofresponsibility.v1;

import org.apache.commons.lang3.StringUtils;

public class VideoApprover extends Approver {
    @Override
    public void deploy(Course course) {

        if (StringUtils.isNotEmpty(course.getVideo())) {
            System.out.println(course.getName() + "含有视频，通过!");
            if (null != approver) {
                this.approver.deploy(course);
            }
        } else {
            System.out.println(course.getName() + "不含视频，不通过，流程结束.");
        }

    }
}
